#ifndef _CKRULEMANAGE_H_
#define _CKRULEMANAGE_H_


#include <map>
#include "CKRule.h"

namespace K_Engine
{	
	class CKRuleManage
	{		
	private:
		CKRuleManage();
		~CKRuleManage();
		std::map<std::string, CKRule*> m_rule;
		std::string m_strLastError;
		void SetLastError(std::string strlasterror);
		
	public:
		static CKRuleManage* GetInstance();
		std::string strGetLastError();
		bool AddRule(std::string rule);
		bool RemoveRule(std::string rule);
		CKRule* GetRuleObject(std::string rule);
	};
}

#endif // ! _CKRULEMANAGE_H_
